// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   TreeDicManager.java

package com.vandagroup.common.treedic;

import java.util.HashMap;

// Referenced classes of package com.vandagroup.common.treedic:
//            TreeDic

public class TreeDicManager
{

    public static HashMap dicList = new HashMap();

    public TreeDicManager()
    {
    }

    public static synchronized TreeDic getTreeDic(String dicID)
        throws Exception
    {
        Object obj = dicList.get(dicID);
        if(obj != null)
            return (TreeDic)obj;
        try
        {
            TreeDic treeDic = TreeDic.getInstance(dicID);
            dicList.put(dicID, treeDic);
            return treeDic;
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
        throw new Exception("Query Tree Dictionaly Error");
    }

}
